#!/bin/bash

cd ./CCP903T_Kernal_Test_sym_hash/
echo "rebuild CCP907T DRIVER ?"
echo "input 'y' or 'n' :"
read is_build
if [[ "$is_build" = "y" || "$is_build" = "Y" ]]; then
    echo "to build driver"
    make clean
    make
else
    echo "will not rebulid driver"
fi 

echo "start inmod kernel,input any key to continue:"
read anykey_continue
for i in {1..100}
do
    if insmod kernel_sym_hash_perf.ko;then 
        rmmod kernel_sym_hash_perf.ko
    fi
    dmesg -c
done
